package top.huhuiyu.springboot3.aop;

import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
@Documented
public @interface BucketLimit {
    String key() default "";

    int timeout() default 60;

    int capacity() default 10;

    String message() default "操作太频繁，请稍后再试";

    BucketLimitMode mode() default BucketLimitMode.GLOBAL;
}
